package com.wrater.zero.models.checkType.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.wrater.zero.common.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.wrater.zero.models.checkReportTemplate.entity.CheckReportTemplate;
import lombok.Data;
import javax.persistence.Column;
import org.springframework.beans.BeanUtils;
import com.wrater.zero.models.checkType.vo.CheckTypeVO;

/**
 * @Package: com.wrater.zero.models.checkType.entity
 * @Description: <检查化验单分类实体>
 * @Author: qiaoxs
 * @CreateDate: 2021-04-07
 * @UpdateUser: qiaoxs
 * @UpdateDate: 2021-04-07
 * @UpdateRemark: <>
 * @Version: 1.0
 */
@Data
@TableName("check_type")
public class CheckType extends BaseEntity<CheckType, CheckTypeVO> {

private static final long serialVersionUID = 7824856176661102991L;

    /**
     * 分类主键
     */
    @JsonIgnore
    @TableId("check_type_id")
    @Column(name = "check_type_id")
    private String checkTypeId;

    /**
     * 分类名称
     */
    @Column(name = "check_type_name")
    private String checkTypeName;

    /**
     * 报告分类（报告检查inspection_report，化验单Laboratory_sheet，超声检验单ultrasonic_sheet）
     */
    @Column(name = "report_type")
    private String reportType;

    /**
     * 分类排序
     */
    @JsonIgnore
    @Column(name = "sequence")
    private Integer sequence;




    /**
     * 返回实体对应vo类
     * @return
     */
    @Override
    public CheckTypeVO buildVo() {
        CheckTypeVO vo = new CheckTypeVO();
        BeanUtils.copyProperties(this, vo);
        return vo;
    }
}